package com.huixuebao.after.service;

import com.huixuebao.after.dto.*;
import com.huixuebao.after.entity.CategoryEntity;
import com.huixuebao.common.bean.ApiResult;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface CourseService {

    ApiResult<List<CourseDTO>> saveCourseDTO(List<CourseDTO> list);

    ApiResult getListCourse(Integer current, Integer size, String courseName, String mechanismName, String courseState, HttpServletRequest request);

    ApiResult addCourse(CourseListDTO courseListDTO,HttpServletRequest request);

    ApiResult editCourse(CourseListDTO courseListDTO);

    ApiResult<List<CategoryAfterDTO>> categoryTree();

    ApiResult updateCourseState(CourseIdDTO courseIdDTO);

    ApiResult retContent(CourseIdDTO courseListDTO);
}
